package itheima_06;

//异常
public class ExceptionDemo01 {
    public static void main(String[] args) {
        method();
    }

    public static void method() {
        int[] arr = new int[]{1, 2, 3};
        System.out.println(arr[1]);
        System.out.println(arr[3]);//ArrayIndexOutOfBoundsException 数组索引越界异常
    }
}
